import { drop } from "../base";

export interface DropStatus {
    version: String,
    drop_sw1: boolean,
    drop_sw2: boolean,
    drop_sw3: boolean,
    film_sw: boolean,
    film_checked: boolean,
    cut_top: boolean,
    cut_bottom: boolean,
    cut_checked: boolean,
    drop_checked1: boolean,
    drop_checked2: boolean,
    drop_checked3: boolean,
    leak: boolean,
    waste_checked: boolean,
    analog: number,
}


export async function drop_cup(id: number) {
    await drop.post('/drop_cup', id);
}

export interface LedCtrlReq {
    id: number,
    ctrl: number,
}

export async function led_ctrl(req: LedCtrlReq) {
    await drop.post('/led_ctrl', req);
}

export async function film_reset() {
    await drop.post('/film_reset');
}

export async function robot_reset() {
    await drop.post('/robot_reset');
}

export async function cut_cup(ctrl: number) {
    await drop.post('/cut_cup', ctrl);
}

